<template>
    <div class="item">
        <img :src="avatar" width="100px" :title="p_name">
        <div class="baseInfo">{{ p_name }}({{ p_age }}){{ deil }} </div>
        <div class="content">{{ count }}</div>
    </div>
</template>

<script>

export default {
    props: {
       p_name:{
            type:String,
            required:true
       },
       avatar:{
        type:String,
            required:true
       },
       deil:{
            type:String,
            required:true
       },
       p_age:{
            type:String,
            required:true
       }
       ,dynasty:{
        type:String,
            required:true
       },
       count:{
            type:String,
            required:true
       }
    }
}
</script>

<style lang="scss" scoped>
.item{
  width: 150px;
  height: 170px;
  text-align: center;
  font-size: 0.9em;
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  position: relative;
  img{
    width: 150px;
    height: 140px;
  }
  .baseInfo{
    width:100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .content{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
</style>